﻿using MiniExcelLibs.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ManagementTools.Service.Dto
{
    /// <summary>
    /// Excel导入模板，转换成OrgInput后提交API
    /// </summary>
    internal class OrgXto
    {
        /// <summary>
        /// 机构名称
        /// </summary>
        [ExcelColumnName("名称")]
        public virtual string Name { get; set; }
        [ExcelColumnName("代码")]
        public virtual string Code { get; set; }
        [ExcelColumnName("电话")]
        public virtual string Tel { get; set; }
        [ExcelColumnName("排序")]
        public virtual int Sort { get; set; }
        [ExcelColumnName("备注")]
        public virtual string Remark { get; set; }
        /// <summary>
        /// 导入时，需要先从父机构名称找到父机构Pid
        /// </summary>
        [ExcelColumnName("父机构名称")]
        public virtual string PName { get;set; }
        /// <summary>
        /// 父机构ID，需要根据父机构名称从系统查到后填入
        /// </summary>
        [ExcelIgnore]
        public virtual string Pid { get; set; }
        
    }
}
